home *** CD-ROM | disk | FTP | other *** search
/ APDL Eductation Resources / APDL Eductation Resources.iso / programs / maths / locus / Docs / Manual < prev    next >
Encoding:
Text File  |  1997-07-13  |  33.4 KB  |  936 lines

  1.  
  2.  
  3.  
  4. Licence
  5.  
  6. This application is
  7.  
  8.           _____ _                                           
  9.          / ____| |                                          
  10.         | (___ | |__   __ _ _ __ _____      ____ _ _ __ ___ 
  11.          \___ \| '_ \ / _` | '__/ _ \ \ /\ / / _` | '__/ _ \
  12.          ____) | | | | (_| | | |  __/\ V  V / (_| | | |  __/
  13.         |_____/|_| |_|\__,_|_|  \___| \_/\_/ \__,_|_|  \___|
  14.  
  15.  
  16. You are permitted to use it for an evaluation period of 30 days. At the
  17. end of this time you must either stop using it or send the single-user
  18. registration fee of £10 to the author. For multi-user and site licences
  19. please refer to the registration form. Unauthorised use after the
  20. evaluation period is illegal. Registered users are entitled to free
  21. upgrades and support from the author. If you are reading this in the
  22. printed Manual then you should already be a Registered User. If not then
  23. you are bound by this Evaluation Licence.
  24.  
  25. Disclaimer
  26.  
  27. No warranty is made with respect of the software, its quality,
  28. performance, or fitness for any particular purpose. The software is
  29. supplied 'as is'. No responsibility will be accepted for any errors
  30. produced or the consequences of any erroneous results.
  31.  
  32. Distribution
  33.  
  34. You may distribute the unregistered version of this program provided you
  35. pass on the complete application including all files in the application
  36. directory. You may not alter any of these files in any way. You may not
  37. copy, distribute or otherwise pass on copies of the printed version of
  38. the Manual and/or Tutorial.
  39.  
  40.  
  41.                 Richard Sharpe
  42.                 5 Camberwell Terrace
  43.                 Leamington Spa
  44.                 Warwickshire
  45.                 CV31 1LP
  46.  
  47.                 Phone:  01926 772137
  48.  
  49. Contents
  50.  
  51. Licence                        
  52. Introduction                   
  53. The Main Controls              
  54. Menus                          
  55. Dialogue Boxes                 
  56. Appendix A (Formula Input)     
  57. Appendix B (Data Set Input)    
  58. Appendix C (Credits)           
  59. Appendix D (EventShell)        
  60. Appendix E (Keyboard Shortcuts)
  61.  
  62.  
  63. Introduction.
  64.  
  65. Locus is a mathematical graph plotter and data analysis tool written
  66. to provide ease of use with sophistication. It is sophisticated
  67. enough for use with ‘A’ level and post ‘A’ level students and
  68. straightforward enough to be used at late primary or early secondary
  69. level.
  70.  
  71. It has the following features:
  72.      Formula based graph plotting in five operational modes:
  73.                *  Cartesian  (non-parametric)
  74.                *  Polar (non-parametric)
  75.                *  Cartesian  (parametric)
  76.                *  Polar  (parametric)
  77.                *  Implicit
  78. *       The user can watch the graph being plotted. This is very
  79.         useful and educationally important. It is also rare among
  80.         desktop graph plotters.
  81. *       Formulae can be entered in standard algebraic notation.
  82. *       Functions can be input in user defined function notation.
  83. *       Constants can be used
  84. *       'Families’ of graphs can be plotted
  85. *       Commonly used functions in each of the five modes can be
  86.         saved and edited.
  87. *       You can choose fully automatic axis scaling or have complete
  88.         manual control.
  89. *       It features a drag box zoom and an automated zoom out facility.
  90. *       The graph can be moved up, down, right and left as required.
  91. *       It can analyse gradients of functions and areas under graphs
  92.         and draw gradient and integral functions.
  93. *       Bi-variate data sets in Text, CSV or SID formats can be imported
  94. *       User defined transformations of datasets using matrices or
  95.         descriptions can be applied.
  96. *       Statistical information including means, standard deviations
  97.         and least squares  regression lines can be calculated.
  98. *       Data can be saved in DrawFile, Text, CSV, SID or its own LocFile
  99.         format.
  100. *       The user can print from the application.
  101. *       All user definable features can be saved as defaults.
  102.  
  103. Locus has been tested on a 4 Mb A5000, a 10Mb Risc PC700 and Strong ARM.
  104. Theoretically Locus should run on a 2Mb machine but this would depend
  105. on the configuration of the individual machine and is not guaranteed.
  106.  
  107.  
  108.  
  109. The Main Controls
  110.  
  111. In this section the main controls and their operation will be described.
  112. They are arranged at the top of the main window in three rows of icons,
  113. each dealing with a specific group of features.
  114.  
  115.         Top Row:        Settings which control how the application behaves.
  116.         Middle Row:     Domain and range settings.
  117.         Bottom Row:     Formula input.
  118.         
  119. Each row will now be described, starting at the left hand side and dealing
  120. with each button in turn..
  121.  
  122. Top row.
  123.  
  124. 1.  Clear
  125.  
  126. This clears the screen and removes your work to date from memory. In
  127. the interest of speed you are not reminded to save work if you have not
  128. already done so. Clicking with SELECT will clear everything from the
  129. screen; clicking with ADJUST (the right hand mouse button) will clear
  130. everything except for any loaded data sets. 
  131.  
  132. 2.   Superimpose
  133.  
  134. This is primarily of interest to teachers for classroom demonstration
  135. and is only available when auto-scaling is on. Click on this icon before
  136. starting work and each time you plot a new graph Locus will redraw the
  137. window, rescaled appropriately for the latest graph plotted, and will
  138. then it each subsequent graph one in the newly scaled window.
  139.  
  140. 3.  Cartesian
  141.  
  142. Clicking on this changes Locus into Cartesian mode, changes the graph
  143. type icon to 'y=' or  ('xy='  if you are in parametric mode) and the
  144. formula menu will change to the cartesian set.
  145.  
  146. 4.  Polar
  147.  
  148. Clicking on this changes Locus into Polar mode, changes the graph
  149. type icon to 'r='  (or 'rØ='  if you are in parametric mode) and the
  150. formula menu will change to the polar set.
  151.  
  152.  
  153. 5.  Implicit
  154.  
  155. Clicking on this changes Locus into Implicit mode, it empties the
  156. graph type icon and the formula menu will change to the implicit set.
  157. In this mode you can type in formulae of the form x²-y²=36.
  158.  
  159. 6.  Parametric Switch
  160.  
  161. This switch toggles between parametric and non-parametric modes.
  162. When the switch looks like this (see left) you are in non-parametric
  163. mode.
  164.  
  165. 7.  Coordinate Input
  166.  
  167. This opens the coordinates input window, which allows the user to
  168. input up to 20 coordinate points.
  169.  
  170. 8.   Internal dataset filer
  171.  
  172. This opens the Internal filer. I have included this in response to
  173. requests that Locus will allow data input without recourse to dragging
  174. files from a directory window. It is useful for teaching purposes and
  175. for demonstrations, as you can set up the files you require beforehand.
  176.  
  177. 9.   Radians
  178.  
  179. Clicking on this toggles the angle measurement between radians and
  180. degrees. 
  181.  
  182. 10.  Step
  183.  
  184. This 'bump' icon set is used to define the plotting step. Locus works by
  185. plotting the number of points specified (in this case 512) and then
  186. joining them up with straight lines. There is obviously a trade-off
  187. between speed of plotting and accuracy. For most simple graphs (ones
  188. that don't oscillate too wildly) a step of 128 should suffice. For a
  189. complex formula like y=xsin(1/x). {-0.03<x<0.03} it would need to be
  190. considerably higher (>1000).
  191.  
  192. 11.  Zoom out
  193.  
  194. The effect of the Zoom Out icon is to double the domain. If auto-scaling
  195. is on, the range will be recalculated accordingly, if not the range will
  196. be doubled as well.
  197.  
  198. 12.  Zoom in
  199.  
  200. The Zoom In icon works differently from Zoom Out. When you click on it
  201. nothing will happen. However, if you then move the pointer over the main
  202. window and 'click and drag' from the top left hand corner of the area
  203. you want enlarged to the bottom right and release the mouse button, the
  204. area defined will be redrawn. If you use this feature with students who
  205. have difficulty with the mouse they may need to practice the 'click-drag'
  206. technique until they become familiar with it.
  207.  
  208. 13.  Move
  209.  
  210. When you click on this icon  you can then click and drag the graph to a
  211. new position. When you release the mouse button the graph will be
  212. redrawn in the new location.
  213.  
  214. 14.  Constants
  215.  
  216. This opens the Constants dialogue box which lets the user store useful
  217. constants to be used in formulae and transformation expressions. Constants
  218. are also used in plotting families of graphs.
  219.  
  220. 15.  Families
  221.  
  222. This opens the Families dialogue box which lets the user plot families
  223. of related graphs by altering the values of any constants in use. 
  224.  
  225. 16.  Coordinates
  226.  
  227. This opens the coordinates information window. Initially it will show
  228. just the the x and y coordinates of the last clicked mouse position.
  229. Clicking anywhere in the main window (ie. on the graph) will display
  230. the coordinates for that position and a pair of horizontal and vertical
  231. dotted lines will appear at the appropriate place on the graph.
  232.  
  233. Clicking with SELECT on the graph will change the coordinate values
  234. according to the mouse position. Click/Dragging on the graph will allow
  235. the user to trace along the graph seeing the various values change as
  236. you do so.
  237.  
  238. Clicking on the 'Toggle size' icon will enlarge the window so that you
  239. can see the polar coordinates and the derivative of the function at that
  240. point. Clicking on the 'Coordinates' icon again will close the window.
  241.  
  242. 17.  Tangent
  243.  
  244. This can be used on its own or with the 'Coordinates' window. When this
  245. icon is selected you will see both the horizontal and vertical
  246. 'Coordinate' lines and the tangent to the curve at that point.
  247. Click/Dragging on the graph will move the tangent along the graph. The
  248. dy/dx entry in the coordinates window will also display the gradient of
  249. the tangent at this point.
  250.  
  251. 18.  Derivative
  252.  
  253. When this is selected Locus will attempt to superimpose the derived
  254. function (wherever it is defined) on top of the original function.
  255. This is done numerically not algebraically, so the derived function
  256. is not found for you. However, you can then attempt to fit a function
  257. to the resulting curve manually, which is a useful way of acquiring
  258. an intuitive grasp of derivative functions.
  259.  
  260. 19.  Integral
  261.  
  262. This works in exactly the same way as the derivative icon but this
  263. time Locus will try to draw the integral function.
  264.  
  265.  
  266.  
  267. Middle row.
  268.  
  269. The five writable icons can be changed at any time (when they are not
  270. 'greyed out') to alter the extent of the graph. The 'max' number must
  271. obviously be higher than the 'min' number. You can also click drag
  272. the contents of one icon into another.
  273.  
  274. Auto scaling
  275.  
  276. When this icon is selected Locus will try to do some of the scaling
  277. for you. Precisely what it does depends on which mode you are in.
  278. This is explained in greater detail in the Tutorial.
  279.  
  280. Squaring up
  281.  
  282. When this icon is unselected it will show an ellipse and the graphs
  283. will be drawn in a rectangular format. When it is selected the ellipse
  284. will turn to a circle and the graphs will be drawn in a square on the
  285. left hand side of the main window.
  286.  
  287.  
  288. Bottom row.
  289.  
  290. Formula input icon
  291.  
  292. This is where you place your formulae and it can be done in one of two
  293. ways. Either you can enter the formula directly by clicking on the icon
  294. with the mouse pointer and typing the appropriate formula for the mode
  295. you are currently in. For more details on this please see the Tutorial
  296. and Appendix A which gives full details on Locus' data input procedures.
  297.  
  298. Alternatively you can click on the menu icon which will open a menu
  299. displaying a number of functions. These are fully editable and you can
  300. create your own set if you wish. The menu will change automatically for
  301. the mode you are in. If, for example, you change to polar parametric
  302. mode the menu will contain this type of formulae.
  303.  
  304. Save to file
  305.  
  306. To the right of the formula menu icon is an icon which will add the
  307. current contents of the main formula icon to the formula menu and
  308. update the menu automatically.
  309.  
  310. x squared
  311.  
  312. Clicking on this icon will insert the squared symbol at the caret
  313. wherever that may be. This allows the user to type in such functions
  314. as "y=x²" or "y=sin²x".
  315.  
  316. x cubed
  317.  
  318. The same as the above except that this time it is the cubed ³ symbol
  319. that is inserted.
  320.  
  321. Plot
  322.  
  323. Clicking on this icon will plot the graph, assuming that there is a
  324. formula in the input icon and the scales are set correctly, Locus
  325. will try to do this even if you have typed garbage into the formula
  326. icon although the results will then be useless.
  327.  
  328. If the plot takes too long or nothing happens, pressing ESCAPE will stop
  329. Locus from plotting.
  330.  
  331.  
  332.  
  333. Menus
  334.  
  335. The icon bar menu.
  336.  
  337. This is a simple menu with three items.
  338.  
  339. Info            A standard RISC OS info box.
  340. Save Choices    This will save all the currently selected preferences
  341.                 to file. These settings will then become the default
  342.                 setup the next time the program is used.
  343. Quit            This will quit the application. Any data and graphs
  344.                 not saved will be lost
  345.  
  346. The Main Window menu.
  347.  
  348. This contains nine items which fall into three basic categories.
  349.  
  350. There are three which have an arrow to the right of them. These lead
  351. either to sub-menus or to dialogue boxes. Three others are 'greyed out'
  352. so you cannot select them.
  353.  
  354. Save leads to the Save sub-menu
  355. Print leads to the Print dialogue box
  356. Edit leads to the Edit sub-menu
  357. Transform, Matrix and Statistics become active when a Data Set is loaded.
  358. Clicking on Transform leads to the Transform dialogue box
  359. Clicking on Matrix leads to the Matrix dialogue box
  360. Clicking on Statistics leads to the Statistics dialogue box
  361. Clicking on Settings leads to the Settings dialogue box
  362. Clicking on Effects leads to the Effect dialogue box
  363.  
  364.  
  365. The sub-menus will now be described.
  366.  
  367. The Save sub-menu
  368.  
  369. Locus can save data in five different formats. The format you use
  370. depends upon what you intend to do with the data.
  371.  
  372. LocFile format is Locus' native format and saves settings and graphs
  373. so that you can load these back into Locus at a later date. It is
  374. particularly useful for lesson preparation so that when you want to
  375. demonstrate something quickly you do not need to do all the settings
  376. manually taking up valuable lesson time. You can save whole families
  377. of curves in this way.
  378.  
  379. DrawFile format is the standard RISC-OS graphic format and is useful
  380. for putting graphs into other documents (eg. Projects, Exam papers,
  381. Tests etc..) All currently drawn graphs will be included in the graph.
  382. The saving process may take a few seconds because the data must be
  383. converted into the Drawfile format.
  384.  
  385. Text, CSV and SID formats are slightly less standard. Locus will
  386. calculate values of the current function between the 'Start' and
  387. 'End' values and save them in two variable comma separated value
  388. (CSV) format using the interval specified by the 'Step' field.
  389.  
  390.  
  391. The Edit sub-menu
  392.  
  393. This has six items, each of which opens a dialogue box.
  394.  
  395. Functions opens the Edit Function dialogue box.
  396. Families opens the Families dialogue box.
  397. Constants opens the Constants dialogue box.
  398. Formulae opens the Edit Formulae dialogue box.
  399. Coordinates opens the Coordinates dialogue box.
  400. Title opens the Title dialogue box.
  401. These are all described in the next section.
  402.  
  403.  
  404.  
  405.  
  406. Dialogue boxes
  407.  
  408.  
  409. Functions dialogue box
  410.  
  411. Locus permits the use of function notation for formula input and the
  412. letters 'f' to 'o' are recognised by the internal formula translation
  413. routines as function names. It is important to remember this because
  414. it means you must not use these reserved letters as constants.
  415.  
  416. Once a function has been defined it is saved to a file inside Locus
  417. where it will remain until the contents of this dialogue box changes.
  418. As an illustration, in the example shown the function definition f(x)
  419. is defined as 'sinx + cosx'. This means that the formula y=f(x) will
  420. draw the graph of y=sinx + cosx.
  421.  
  422. This capability is useful as typing f(2x) will draw the graph of
  423. y=sin2x +cos 2x and typing 2f(x) will produce the graph y=2(sinx + cosx).
  424. It is particularly valuable when teaching function transformations and
  425. in looking at families of related functions. (see the next section.)
  426.  
  427. Clicking on the OK button will reset the preset functions to their new
  428. values and clicking on the Cancel button closes the window without
  429. altering anything.
  430.  
  431.  
  432.  
  433.  
  434. Families dialogue box
  435.  
  436. The icon at the top of the Graph Families dialogue box shows the
  437. number of graphs to be plotted and the remaining writable icons
  438. allow you to set the required increments  for each of the constants.
  439. If any of these icons are left blank those constants will remain the
  440. same throughout the operation.
  441.  
  442. When everything is set to your satisfaction click on the <OK> button
  443. to accept the values or press <Cancel> to reject them.
  444.  
  445. When the graphs have been plotted the constants will revert to
  446. their original values.
  447.  
  448.  
  449.  
  450. Constants dialogue box
  451.  
  452. This lets you preset constants. When you receive Locus you should
  453. find that 'p' is set to the value of pi  (3.14......) and 'e' is
  454. set to the value of e  (2.718.....). The letters f-o are missing as
  455. these are recognised by Locus as user defined functions. t, x & y
  456. are also missing as these are defined as variables.
  457.  
  458. You can alter any of the values or add new ones as you wish and then
  459. set them by clicking on the <OK> button or you can save your values as
  460. the default set by clicking on the <Save> button. <Cancel> closes the
  461. window and changes nothing.
  462.  
  463.  
  464. Print dialogue box
  465.  
  466. This displays information about the printer and the various settings
  467. that will enable the user to print the graph at the right point on
  468. the paper and at the correct size.
  469.  
  470. Printer  shows the name of the currently active printer.
  471. Resolution  shows the current print resolution of your printer.
  472. Copies sets the number of copies of the graph that will be printed.
  473. Cancel  closes the Print window.
  474. Print begins printing.
  475.  
  476. Pressing ESCAPE at any time during the printing will abort printing
  477. and return control to the desktop.
  478.  
  479. The Hot Key PRINT will open this dialogue box.
  480.  
  481.  
  482. Formulae dialogue box
  483.  
  484. This lets you alter the formulae which appear when you click on the
  485. formula menu icon on the main window pane. You can have up to 50
  486. preset formulae in these menus although if the menus become too large
  487. it becomes difficult to find the entry required.
  488.  
  489. There are five files, one for each of the five formula based modes of
  490. operation: cartesian, polar, implicit etc. and the appropriate data is
  491. shown in this window for the mode you are in at the time.
  492.  
  493. After changing the formulae clicking the <OK> button resaves the formula
  494. file.
  495.  
  496. If you delete formulae from the menu you need not worry about leaving
  497. empty icons, Locus will deal with these automatically.
  498.  
  499. The Hot Key ^E will open this dialogue box.
  500.  
  501.  
  502.  
  503. Coordinates Dialogue Box
  504.  
  505. This allows you to enter small data sets without recourse to CSV, SID
  506. or Text files.
  507.  
  508. The topmost writable icon takes the titles for the horizontal and vertical
  509. axes. These must be separated by a comma as this window is read by the
  510. same function that deals with other input data sets.
  511.  
  512. The rest of the writable fields can contain the coordinates of the points
  513. you want to plot. The plotting style of the points is controlled by the
  514. 'Effects' dialogue box.
  515.  
  516. The <Clear> button emptys all fields in the window.
  517.  
  518. As well as entering data manually can drag small data set files to the
  519. arrow icon in this window to load them.
  520.  
  521.  
  522. Internal filer window
  523.  
  524. This window allows you to save dataset files into your own personal
  525. directory and from there they can be deleted, loaded into a text editor
  526. or loaded into Locus. You can also create new data files yourself from
  527. this window. This allows you, the user to manipulate datafiles within
  528. Locus without having to move the main window aside so that you can drag a
  529. data file from a filer window onto the application window.
  530.  
  531. When you received your copy of Locus, you should have also received a
  532. copy of a tiny application directory called !LocusData. You should make
  533. copies of this for everyone who is going to use the application.
  534.  
  535. Suppose that Locus is on a network and a class of students is using the
  536. internal filer simultaneously. Everyone is accessing the same copy of
  537. Locus from the server but this way they can all use different sets of
  538. files because the LocusData folder is kept in their personal network
  539. space.
  540.  
  541. In order to use the internal filer, you should double click on your
  542. LocusData application window. This will open the directorywhere your
  543. files are stored and tell Locus where to look for files.
  544.  
  545. Cancel will close the window without doing anything at all.
  546.  
  547. Open File will open any file that the user has selected in the pane
  548. window. If nothing happens when you click on this button, load your text
  549. editor and it will work.
  550.  
  551. Delete File will any delete any file(s) that the user has selected in the
  552. pane window.
  553.  
  554. Clicking on Delete All will empty Locus of all saved datafiles.
  555.  
  556. Clicking on Save file will open a save box which the user can use to drag
  557. the selected file to a directory of their choice.
  558.  
  559. Clicking on Load file will load the selected file(s) into Locus.
  560.  
  561. To load a set of data files into Locus in this way you drag the files onto
  562. the 'arrow' icon.
  563.  
  564. Clicking on New file will open a text window in whatever text editor you
  565. have loaded. You can then save the edited file back into Locus. If no
  566. text editor is loaded then nothing  will happen.
  567.  
  568. Clicking on the Reset button will update the pane window directory.
  569.  
  570.  
  571.  
  572. Title Dialogue Box
  573.  
  574. This lets you write up to 256 characters onto the screen in any font,
  575. fontsize and desktop colour.
  576.  
  577. Fill in the fields and click on the <OK> button to display the text.
  578. By default the text will be printed at the top left hand corner of
  579. the screen but you can move it by clicking on it to select it and
  580. then dragging it around the screen. Clicking anywhere outside of
  581. the box will deselect it.
  582.  
  583. The Hot Key ^T will open this dialogue box.
  584.  
  585.  
  586.  
  587. Transformations dialogue box
  588.  
  589. This enables the user to transform data sets in a variety of different
  590. ways. Once a data set has been loaded by dragging the file icon onto
  591. the Locus window the Transform entry in the main menu becomes selectable
  592. and clicking SELECT on it will open the Transformations window.
  593.  
  594. There are four main transformations that can be applied to a data set:
  595.  
  596.         Rotation
  597.         Enlargement
  598.         Reflection
  599.         Translation
  600.  
  601. First click with SELECT on the transformation you require and then fill
  602. in the appropriate fields.
  603.  
  604. Clicking on the <Apply> button will apply the transformation to the data
  605. set. The transformation will be applied to the last data set loaded so
  606. clicking on <Apply> a second time will transform the previously
  607. transformed set.
  608.  
  609. The Hot Key F4 will also open the Transform window.
  610.  
  611.  
  612.  
  613.  
  614.  
  615. Matrix Dialogue Box
  616.  
  617. The window performs similar operations to the transform window but the
  618. input can be made as a 2x2 matrix.
  619.  
  620. You can use trigonometric functions and constants in the matrix fields
  621. but you must put the constant values in brackets. For example, if you
  622. type 'cos(p/2)' in one of the fields, the brackets are essential as
  623. 'cos p/2' produces the effect '(cosp)/2' which, if part of a rotation
  624. matrix, would produce a transformation of Rotation of pi radians
  625. followed by an enlargement scale factor 0.5 (all centre (0,0)).
  626.  
  627. The Hot Key F5 will open this dialogue box.
  628.  
  629.  
  630.  
  631. Statistics Info and Dialogue Box
  632.  
  633. This main purpose of this window is to display information about your
  634. data set, transformed or otherwise.
  635.  
  636. It gives all of the information required, and in addition can
  637. calculate the correlation coefficient and the least squares
  638. regression line.
  639.  
  640. If you want to draw the Least squares regression line onto the data
  641. set graph click on the <Transfer Equation> button to transfer the
  642. formula to the formula input icon on the main window and then click
  643. on the <Plot> button as usual.
  644.  
  645. The Hot Key F6 will open this dialogue box.
  646.  
  647.  
  648. Settings Dialogue Box
  649.  
  650. This window contains seven option icons which enable you to set up
  651. your graphs according to preference.
  652.  
  653.  
  654. 1.      Show Assymptotes
  655.         When set this makes Locus draw asymptotes (a dotted vertical
  656.         line) at the borders of any area of the graph where the function
  657.         is not defined. For example the graph of y=1/(x+2) will have
  658.         an asymptote at x=-2. When it is off Locus will not draw them.
  659.         
  660. 2.      Show Plot
  661.         Locus plots graphs in a variety of different ways to give the user
  662.         the maximum choice. Most graph plotters do not permit the user to
  663.         see the graph while it is being plotted but Locus does allow you
  664.         to do this if Show Plot is on. Plotting will be slower, but this
  665.         feature can be very useful.
  666.         
  667. 3.      Show Axes
  668.         If Show Axes is off, the axes will disappear. Normally you would
  669.         want to see them but it may be useful not to have them at certain
  670.         times.
  671.         
  672. 4.      Show Grid
  673.         If Show Grid is on the graph will be covered with a lattice. This
  674.         can be turned on and off at any time, whether graphs have been
  675.         drawn or not, although it is best to decide at the start whether
  676.         you want this on or off as redrawing can take a while if the plot
  677.         is complicated.
  678.         
  679. 5.      Show Minor Axis Divisions
  680.         If this is set the axes will show small marks between the slightly
  681.         larger, labelled, marks. Minor divisions are not labelled. The number
  682.         of divisions will alter automatically dependent upon the size of
  683.         the range settings.
  684.          
  685. 6.      Show Axis Markers
  686.         If this is set numbers will be displayed at intervals along the
  687.         horizontal and vertical axes to show the scale.
  688.         
  689. 7.      Show Axis Labels
  690.         If this is set the axis labels will be displayed. By default these
  691.         are 'x' and 'y'.
  692.  
  693. The Hot Key F7 will open this dialogue box.
  694.  
  695.  
  696.  
  697. Effects Dialogue Box
  698.  
  699. From here you can set the options which control the appearance of the graph
  700. such as fonts, colours and data marks.
  701.  
  702. Fonts sets the font and font size for the axis markers.
  703.  
  704. Colours sets the various colours used.
  705.  
  706. Mark sets the shape used to denote a point in a data set. The choice is -
  707.  
  708.         Dot
  709.         Cross   (square)
  710.         Cross   (diagonal)
  711.         Square   (small, empty)
  712.         Square   (large, empty)
  713.         Diamond   (small, empty)
  714.         Diamond   (large, empty)
  715.         Square   (small, filled)
  716.         Square   (large, filled)
  717.         Diamond   (small, filled)
  718.         Diamond   (large, filled)
  719.         
  720. The 'Connect marks' option button sets whether the marks in a data set
  721. will be joined to each other in the order of input.
  722.  
  723. The Hot Key F2 will open this dialogue box.
  724.  
  725.  
  726.  
  727. Appendix A  -  Formula Input.
  728.  
  729.  
  730.  
  731. Variables
  732.  
  733. Formula input is dependant on the plotting mode you are in, but the
  734. preset functions available are the same even when the variables used
  735. differ and are as follows.
  736.       Mode            Independent variable         Dependent variable 
  737.       Cartesian                x                            y
  738.       Cartesian parametric     t                            x,y
  739.       Polar                    t                            r
  740.       Polar parametric         t                            r,Ø
  741.       Implicit                 x,y
  742.  
  743. For example:  In parametric mode the equations -
  744.         x=cost
  745.         y=sint
  746.         
  747. would be written as -
  748.  
  749.         cost,sint.
  750.         
  751. You do not need to type the 'y=' or 'r=' as this is assumed by Locus.
  752. The appropriate dependent variables are automatically placed in the
  753. icon to the immediate left of the formula input icon.
  754.  
  755. In implicit mode nothing will appear in this icon as it is up to the
  756. user to enter the entire equation.
  757.  
  758.  
  759. Available Functions
  760. Locus has a number of preset functions built in including a complete
  761. set of trigonometric functions and hyperbolic trig functions plus some
  762. other useful common functions.
  763.  
  764.  
  765. An additional function is 'blanc', which draws the blancmange function.
  766. This is continuous everywhere and differentiable nowhere and is very
  767. useful in teaching calculus as nowhere is it locally straight. If you
  768. are interested you could also try plotting 'r=blanct' in polar mode.
  769.  
  770. These functions can be entered in standard mathematical notation as
  771. Locus will add any required brackets. For example, typing 'asinx' in
  772. the formula input icon will plot the graph of y=asinx by replacing
  773. 'asinx' with the name of the function FN_ARCSIN(X) which will then
  774. be evaluated.
  775.  
  776. If there is the possibility of ambiguity the user should use
  777. appropriate sets of brackets. For example. if you were writing a
  778. transformation matrix for a data set to perform a rotation of PI/4
  779. radians about the origin then the matrix should include brackets
  780. around the constant value because Locus will interpret 'cosp/4'
  781. as (COS(PI))/4, which will result in a rotation of PI radians and
  782. an enlargement scale factor 0.25.
  783.  
  784.  
  785. Please note that the Implicit plotting routines are at an embryonic
  786. stage at the time of writing and while they are capable of dealing
  787. with simple functions like one-to-one mapping (e.g. 4x-3y=-7  or
  788. xy=10) and some two-to-one and one-to-two mappings, Locus will plot
  789. rubbish if asked to deal with most many-to-many mappings and any
  790. trigonometric input. I have included this basic Implicit capacity
  791. because it is very useful for teaching simultaneous linear equations.
  792.  
  793.  
  794. Appendix B  -  Data Set Input
  795.  
  796. Data sets can be entered in a variety of ways to give maximum
  797. flexibility for the user.
  798.  
  799. If you are familiar with methods of data transfer between applications
  800. you should have no difficulty producing CSV or SID files to use as
  801. input for Locus. However, if you are unable to do this Locus can also
  802. use a standard textfile. Everyone has a copy of !Edit and so can produce
  803. textfiles. It is, of course. important that the user is aware of the
  804. constraints. If you try to use inappropriate data Locus may attempt to
  805. plot it until it generates an error. Errors of this type should not crash
  806. the application but the possibility does exist.
  807.  
  808. If you save a bi-variate (two variable) data set from a spreadsheet,
  809. database or Locus itself, then it will be in the correct format for
  810. Locus to load when the file icon is dragged to the main window.
  811. However if you wish to write your own data sets directly in a text
  812. editor, and this can be very useful, then you need to use the following
  813. format.
  814.  
  815. The first line must contain the Axis label names. If the names are
  816. unimportant then just type 'x,y'.
  817.  
  818. The following lines should consist of the two items of data. These
  819. must be separated by a comma and line must be concluded by pressing
  820. return.
  821.  
  822. A small data set in Textfile format might look like this:
  823.  
  824.              x.y
  825.              -3,0
  826.              -2,-9
  827.              -1,-1
  828.              0,3
  829.              1,-3
  830.              2,5
  831.              3,13
  832.  
  833. Note that there must be a line feed (press RETURN) at the end of the
  834. last line.
  835.  
  836.  
  837.  
  838. Appendix C  -  Credits
  839.  
  840. The first credit must go to Paul Hobbs with whose astounding !EvntShell
  841. library, this application was written.
  842.  
  843. Thanks also to Guttorm Vik who wrote !StrongEd which is the editor used
  844. to write Locus.
  845.  
  846. Other applications and modules used are -
  847.       !BasShrink by John Wallace  
  848.       !BLIB by Ian Palmer 
  849.       !TemplEd v. 1.31  by Dick Alstein  
  850.       !Wimpy  by Andrew Heckford 
  851.       !Applise  by Armen Software 
  852.       !GrabMenu by Cy Booker 
  853.       MenuUtils by Alex Pretrov
  854.       
  855. My thanks go to all of these authors for their excellent work.
  856.  
  857. Finally special thanks to David Tall for an old BBC program called
  858. SuperGraph from which I got a great deal of inspiration including
  859. the graph family idea and ideas for how to implement preset functions.
  860.  
  861.  
  862.  
  863.  
  864. Appendix D
  865.  
  866. EventShell
  867. This program has been written using the routines supplied with the
  868. EvntShell library which is copyright Paul Hobbs.
  869.  
  870. EvntShell is a starting point for developing your own applications
  871. that run under the RISC-OS wimp system. The EvntShell library
  872. contains code to handle most of the ‘Events’ (i.e. opening a menu,
  873. closing a window etc) that can occur, and all your application has
  874. to do is inform the library what it should do when certain events
  875. occur. For example a menu can be attached to a window or to an icon
  876. - the library will open the menu for you (in the correct position!)
  877. when the <MENU> button on the mouse is used.
  878.  
  879. Normally writing a wimp application is a very complex business,
  880. involving much reading of the Programmers Reference Manuals, magazine
  881. articles and examining other applications. The aim of the EvntShell
  882. library is to reduce the need for this and to enable the speedy
  883. creation of easily maintained and robust applications.
  884.  
  885.  
  886. Distribution Licence for EvntShell
  887.  
  888. You have permission to use any part or the whole library in any Public
  889. Domain/ShareWare project ONCE YOUR COPY HAS BEEN REGISTERED, as long
  890. as I am fully credited (via the inclusion of this file in the program
  891. documentation). If you wish to use these routines in a program that is
  892. for sale (for however much and for whatever reasons) or released as
  893. copyright material then my express permission in writing must be obtained.
  894. I maintain copyright on all the material supplied as part of the EvntShell
  895. system (except where noted below) and reserve the right to amend these
  896. conditions in cases where I deem misuse.
  897. The library code is supplied free of charge to everyone ‘as is’. There
  898. is no guarantee that it is free from bugs and no warranty is given about
  899. its suitability for use.
  900. Further details about EvntShell may be obtained from the author:
  901. Paul Hobbs
  902. Rheinpfalzstrasse 2
  903. 85049 Ingolstadt
  904. Germany
  905. Email   : Paul.Hobbs@t-online.de
  906. Web site: http://ourworld.compuserve.com/homepages/Paul_Hobbs
  907. The heap manager routines used by EvntShell are copyright Risc User and
  908. are used with permission.
  909. Copyright for all of the supplied relocatable modules remains with the
  910. original authors.
  911.  
  912.  
  913.  
  914. Appendix E  -  Keyboard Shortcuts
  915.  
  916.         Print                   PRINT
  917.         Save
  918.         Locfile                 F3
  919.         DrawFile                ^F3
  920.         TextFile                Shift F3
  921.  
  922.         Save Choices            ^S
  923.  
  924.         Functions               ^F
  925.         Families                ^G
  926.         Constants               ^C
  927.         Formulae                ^E
  928.         Coordinates             ^H
  929.         Title                   ^T
  930.  
  931.         Transform               F4
  932.         Matrix                  F5
  933.         Statistics              F6
  934.         Settings                F7
  935.         Effects                 F2
  936.